#include <my_header.h>
#include "connection.hpp"
#include <iostream>


namespace rocket 
{

connection::connection(int port,string address)
:_client_fd()
,_network_address(port,address)
{

}    

connection::~connection()
{
    
}

int connection::connect_server()
{
    int ret=connect(_client_fd.get_socket(), _network_address.get_pointer(), _network_address.get_size());
    return ret;
}

int connection::get_fd()
{
    return _client_fd.get_socket();
}

}




